package com.echat.messagesender.sender.model;

import com.sun.javafx.beans.IDProperty;
import lombok.Builder;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;

/**
 * Created by chenmohan on 2018/09/06
 *
 * @description
 */
@Data
@Builder
@Table(name="sms_sendlog")
public class SmsSendLog {

    @Id
    private Long id;

    private Long userId;

    /** 短信接收人手机号，多个接收人时用","分隔 */
    private String recipient;

    private Boolean sendResult;

    @Column(name="send_datetime")
    private LocalDateTime sendTime;

    private Long sendPlatformId;

    private String memo;

    /** 关联查询时该字段不为null */
    private SmsSendLogDetail detail;
}
